
namespace ZR.Model.BaseManage.Dto
{
    /// <summary>
    /// plc标签信息查询对象
    /// </summary>
    public class BasePlcTagQueryDto : PagerInfo 
    {
        /// <summary>
        /// plc编号 
        /// </summary>
        public string PlcCode { get; set; }
        /// <summary>
        /// 标签编号 
        /// </summary>
        public string TagCode { get; set; }
        /// <summary>
        /// 标签地址 
        /// </summary>
        public string TagAddress { get; set; }
    }

    /// <summary>
    /// plc标签信息输入输出对象
    /// </summary>
    public class BasePlcTagDto
    {
        /// <summary>
        /// 标签id 
        /// </summary>
        [Required(ErrorMessage = "标签id不能为空")]
        public string TagId { get; set; }

        /// <summary>
        /// plc编号 
        /// </summary>
        [Required(ErrorMessage = "plc编号不能为空")]
        public string PlcCode { get; set; }

        /// <summary>
        /// 标签编号 
        /// </summary>
        [Required(ErrorMessage = "标签编号不能为空")]
        public string TagCode { get; set; }

        /// <summary>
        /// 标签地址 
        /// </summary>
        [Required(ErrorMessage = "标签地址不能为空")]
        public string TagAddress { get; set; }

        /// <summary>
        /// 数据类型 
        /// </summary>
        [Required(ErrorMessage = "数据类型不能为空")]
        public string TagType { get; set; }

        /// <summary>
        /// 值 
        /// </summary>
        public string TagValue { get; set; }

        /// <summary>
        /// 启用标志（0禁用1启用） 
        /// </summary>
        [Required(ErrorMessage = "启用标志（0禁用1启用）不能为空")]
        public int Enabled { get; set; }

        /// <summary>
        /// 创建人 
        /// </summary>
        public string CreateBy { get; set; }

        /// <summary>
        /// 创建时间 
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 更新人 
        /// </summary>
        public string UpdateBy { get; set; }

        /// <summary>
        /// 更新时间 
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 备注 
        /// </summary>
        public string Remark { get; set; }

    
    }
}